/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-07-14
 * Time: 21:55
 */
//String类的构造方法
public class Main_1 {
    public static void main(String[] args) {
        String s1 = "haha";
        System.out.println(s1);

        String s2 = new String("hehe");
        System.out.println(s2);

        char[] ch = {'a','b','c'};
        String s3 = new String(ch);
        System.out.println(s3);
    }
}
